#include "mainwindow.h"
#include "gamewindow.h"


MainWindow::MainWindow(QWidget *parent, Qt::WFlags flags)
	: QMainWindow(parent, flags)
{
	//ui.setupUi(this);
	//QWidget *border = new QWidget(this);
	//QPalette palette;
	//palette.setColor(border->backgroundRole(), Qt::black);
	//border->setPalette(palette);
 //   //border->setBackgroundColor(k);
 //   setCentralWidget(border);


	m_pGameWindow = new GameWindow(this);
	m_pGameWindow->setFocusPolicy( Qt::StrongFocus );
	setCentralWidget(m_pGameWindow);



 //   Q3VBoxLayout *borderLayout = new Q3VBoxLayout( border );
 //   borderLayout->addStretch( 1 );

 //   QWidget *mainWin = new QWidget( border );
 //   mainWin->setFixedSize(640, 480);
 //   borderLayout->addWidget( mainWin, 0, Qt::AlignHCenter );

 //   borderLayout->addStretch( 1 );

 //   view = new KAsteroidsView( mainWin );
 //   view->setFocusPolicy( Qt::StrongFocus );
 //   connect( view, SIGNAL(shipKilled()), SLOT(slotShipKilled()) );
 //   connect( view, SIGNAL(rockHit(int)), SLOT(slotRockHit(int)) );
 //   connect( view, SIGNAL(rocksRemoved()), SLOT(slotRocksRemoved()) );
 //   connect( view, SIGNAL(updateVitals()), SLOT(slotUpdateVitals()) );

 //   Q3VBoxLayout *vb = new Q3VBoxLayout( mainWin );
 //   Q3HBoxLayout *hb = new Q3HBoxLayout;
 //   Q3HBoxLayout *hbd = new Q3HBoxLayout;
 //   vb->addLayout( hb );
}

MainWindow::~MainWindow()
{
	
}
